package homework;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class FISDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("batman.dat");
        int a = fis.read();
        System.out.println(a);
        a = fis.read();
        System.out.println(a);
        a = fis.read();
        System.out.println(a);//读到末尾返回-1
        fis.close();

    }
}
